﻿@model TCM.UserProfile

@{
    ViewBag.Title = "Edit";
}

<h2>Edit</h2>

@using (Html.BeginForm()) {
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)
  
     
    foreach (var role in Model.webpages_UsersInRoles){   
               @Html.Partial("RelatedRoles", role)                 
        
   }       
             
                                                
   
    <fieldset>
        <legend>UserProfile</legend>
@Html.HiddenFor(model => model.UserId)
        @Html.EditorFor(model => model.Password)
        @Html.EditorFor(model => model.ConfirmPassword)
        <ol>
        

        <li class="editor-label">
            @Html.LabelFor(model => model.UserName)
        
            @Html.EditorFor(model => model.UserName)
            @Html.ValidationMessageFor(model => model.UserName)
        </li>
             <li class="editor-label">
        
        
            @Html.Awe().MultiLookupFor(model => model.webpages_Roles1)
         
        </li>
            
            </ol>

        <p>
            <input type="submit" value="Save" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
